#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv){
  long factorial = 1, i;
  int n;
  n = atol(argv[1]);
  if(argc != 2){
    printf("SINTAXIS: ./ejercicio2 nº\n");
    exit(-1);
  }

  for(i = 1; i<n; i++){
    factorial *= i;
  }
  printf("El factorial de %ld es %ld\n", i, factorial);

}
